<#include "/WEB-INF/default/fragment/header.ftl">
<link href="${request.contextPath}/assets/css/myteam.css" rel="stylesheet">
<body>

<#include "/WEB-INF/default/fragment/nav.ftl">
    <body>
     <div class="container">
        <div>
        <div class="pic" align="center"><img src="http://172.16.1.55/logo.png"></div>
        <div class="team clearfix">
      <div class="create-team fl">${title}</div>
        </div>
        <div class="underline"></div>
        <table class="table">
            <thead>
                <tr>
                    <th>团队id</th>
                    <th>团队名称</th>
                    <th>团队描述</th>
                    <th>个性域名</th>
                    <th>成员</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                    <th>团队状态</th>
                    <th>完成度</th>
                </tr>
            </thead>
            <tbody>
              <#if teams??>
        <#list teams as team>
                <tr>
                    <td>${team.id!""}</td>
                    <td>${team.name!""}</td>
                    <td>${team.desc!""}</td>
                    <td><a style="color: red;" href="${request.contextPath}/team_${team.id}">${team.subdomain!""}</a></td>
                    <td></td>
                    <td>${(team.gmtBegin*1000)?number_to_date?string("yyyy-MM-dd") }</td>
                    <td>${(team.gmtEnd*1000)?number_to_date?string("yyyy-MM-dd")}</td>
                    <td><#if team.status==1>尚未开始</#if>
                    <#if team.status==2>正在实训中</#if>
                    <#if team.status==3>毕业项目实战</#if>
                    <#if team.status==4>完成实训</#if>
                    <#if team.status==5>结束团队</#if></td>
                    <td></td>
                    <td><button class="btn btn-xs btn-danger j_remove_row"><a href="${request.contextPath}/team_invite?team.id=${team.id}">邀请成员</a></button></td>
                    <td><button class="btn-xs btn-danger j_copy_row"><a href="${request.contextPath}/team_modify?team.id=${team.id}">修改</a></button></td>
                    <td><button class="btn-xs btn-danger j_copy_row"><a href="">删除</a></button></td>
                </tr>
                </#list>
        </#if> 
                </tbody>
                </table>
                <div>
                <ul class="pagination pagination-sm ">
        <#if page??>
        <#list 1..page.totalPageCount as i>
        <li class="clazz fl">
        <a href="${request.contextPath}/team_list?p=${i}">${i}</a></li>
        </#list>
        </#if>
        </ul>
        </div>
        </div>
</body>
<#include "/WEB-INF/default/fragment/footer.ftl">